package main

import (
	"os"
	"fmt"
	"strconv"
)

func main(){
	filePath := "../2.txt"
	file,err := os.OpenFile(filePath,os.O_TRUNC|os.O_WRONLY,666)
	defer file.Close()
	if err != nil {
		fmt.Println(err)
	}
	var isBoy bool = true
	isBoyStr := ""
	for i:=0;i<=4;i++{
		isBoyStr = strconv.FormatBool(isBoy)
		isBoyStr = "Anna is a boy,is it " + isBoyStr + "?"
		file.WriteString(isBoyStr)
		file.WriteString("\r\n")
	}
}
